package pers.cocoadel.springcloud.serveice;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import pers.cocoadel.springcloud.entities.CommonResult;
import pers.cocoadel.springcloud.entities.Payment;
import pers.cocoadel.springcloud.serveice.impl.PaymentFallBackImpl;

@FeignClient(value = "cloud-provider-payment", fallback = PaymentFallBackImpl.class)
public interface PaymentService
{
    @GetMapping("/payment/paymentSql/{id}")
    CommonResult<Payment> paymentSql(@PathVariable("id") Integer id);
}
